Optimal. Leaf size=294 \[ \frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \sqrt {c+d x^2+e x} \left (2 a c e-x \left (8 b c^2-a e^2\right )\right )}{8 c^2 x^2 \left (a+b x^2\right )}-\frac {e \sqrt {a^2+2 a b x^2+b^2 x^4} \left (8 b c^2-a \left (4 c d-e^2\right )\right ) \tanh ^{-1}\left (\frac {2 c+e x}{2 \sqrt {c} \sqrt {c+d x^2+e x}}\right )}{16 c^{5/2} \left (a+b x^2\right )}+\frac {b \sqrt {d} \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {2 d x+e}{2 \sqrt {d} \sqrt {c+d x^2+e x}}\right )}{a+b x^2}-\frac {a \sqrt {a^2+2 a b x^2+b^2 x^4} \left (c+d x^2+e x\right )^{3/2}}{3 c x^3 \left (a+b x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.79, antiderivative size = 294, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.175, Rules used = {6744, 1650, 810, 843, 621, 206, 724} \[ \frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \sqrt {c+d x^2+e x} \left (2 a c e-x \left (8 b c^2-a e^2\right )\right )}{8 c^2 x^2 \left (a+b x^2\right )}-\frac {e \sqrt {a^2+2 a b x^2+b^2 x^4} \left (8 b c^2-a \left (4 c d-e^2\right )\right ) \tanh ^{-1}\left (\frac {2 c+e x}{2 \sqrt {c} \sqrt {c+d x^2+e x}}\right )}{16 c^{5/2} \left (a+b x^2\right )}-\frac {a \sqrt {a^2+2 a b x^2+b^2 x^4} \left (c+d x^2+e x\right )^{3/2}}{3 c x^3 \left (a+b x^2\right )}+\frac {b \sqrt {d} \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {2 d x+e}{2 \sqrt {d} \sqrt {c+d x^2+e x}}\right )}{a+b x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 621
Rule 724
Rule 810
Rule 843
Rule 1650
Rule 6744
Rubi steps
\begin {align*} \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^4} \, dx &=\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int \frac {\left (2 a b+2 b^2 x^2\right ) \sqrt {c+e x+d x^2}}{x^4} \, dx}{2 a b+2 b^2 x^2}\\ &=-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{3 c x^3 \left (a+b x^2\right )}-\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int \frac {\left (3 a b e-6 b^2 c x\right ) \sqrt {c+e x+d x^2}}{x^3} \, dx}{3 c \left (2 a b+2 b^2 x^2\right )}\\ &=\frac {\left (2 a c e-\left (8 b c^2-a e^2\right ) x\right ) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 c^2 x^2 \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{3 c x^3 \left (a+b x^2\right )}+\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int \frac {\frac {3}{2} b e \left (8 b c^2-a \left (4 c d-e^2\right )\right )+24 b^2 c^2 d x}{x \sqrt {c+e x+d x^2}} \, dx}{12 c^2 \left (2 a b+2 b^2 x^2\right )}\\ &=\frac {\left (2 a c e-\left (8 b c^2-a e^2\right ) x\right ) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 c^2 x^2 \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{3 c x^3 \left (a+b x^2\right )}+\frac {\left (2 b^2 d \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int \frac {1}{\sqrt {c+e x+d x^2}} \, dx}{2 a b+2 b^2 x^2}+\frac {\left (b e \left (8 b c^2-a \left (4 c d-e^2\right )\right ) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int \frac {1}{x \sqrt {c+e x+d x^2}} \, dx}{8 c^2 \left (2 a b+2 b^2 x^2\right )}\\ &=\frac {\left (2 a c e-\left (8 b c^2-a e^2\right ) x\right ) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 c^2 x^2 \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{3 c x^3 \left (a+b x^2\right )}+\frac {\left (4 b^2 d \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \operatorname {Subst}\left (\int \frac {1}{4 d-x^2} \, dx,x,\frac {e+2 d x}{\sqrt {c+e x+d x^2}}\right )}{2 a b+2 b^2 x^2}-\frac {\left (b e \left (8 b c^2-a \left (4 c d-e^2\right )\right ) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \operatorname {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {2 c+e x}{\sqrt {c+e x+d x^2}}\right )}{4 c^2 \left (2 a b+2 b^2 x^2\right )}\\ &=\frac {\left (2 a c e-\left (8 b c^2-a e^2\right ) x\right ) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 c^2 x^2 \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{3 c x^3 \left (a+b x^2\right )}+\frac {b \sqrt {d} \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {e+2 d x}{2 \sqrt {d} \sqrt {c+e x+d x^2}}\right )}{a+b x^2}-\frac {e \left (8 b c^2-a \left (4 c d-e^2\right )\right ) \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {2 c+e x}{2 \sqrt {c} \sqrt {c+e x+d x^2}}\right )}{16 c^{5/2} \left (a+b x^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.29, size = 189, normalized size = 0.64 \[ \frac {\sqrt {\left (a+b x^2\right )^2} \left (-3 e x^3 \left (a \left (e^2-4 c d\right )+8 b c^2\right ) \tanh ^{-1}\left (\frac {2 c+e x}{2 \sqrt {c} \sqrt {c+x (d x+e)}}\right )-2 \sqrt {c} \sqrt {c+x (d x+e)} \left (a \left (8 c^2+2 c x (4 d x+e)-3 e^2 x^2\right )+24 b c^2 x^2\right )+48 b c^{5/2} \sqrt {d} x^3 \tanh ^{-1}\left (\frac {2 d x+e}{2 \sqrt {d} \sqrt {c+x (d x+e)}}\right )\right )}{48 c^{5/2} x^3 \left (a+b x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 2.05, size = 791, normalized size = 2.69 \[ \left [\frac {48 \, b c^{3} \sqrt {d} x^{3} \log \left (8 \, d^{2} x^{2} + 8 \, d e x + 4 \, \sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {d} + 4 \, c d + e^{2}\right ) + 3 \, {\left (a e^{3} + 4 \, {\left (2 \, b c^{2} - a c d\right )} e\right )} \sqrt {c} x^{3} \log \left (\frac {8 \, c e x + {\left (4 \, c d + e^{2}\right )} x^{2} - 4 \, \sqrt {d x^{2} + e x + c} {\left (e x + 2 \, c\right )} \sqrt {c} + 8 \, c^{2}}{x^{2}}\right ) - 4 \, {\left (2 \, a c^{2} e x + 8 \, a c^{3} + {\left (24 \, b c^{3} + 8 \, a c^{2} d - 3 \, a c e^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + e x + c}}{96 \, c^{3} x^{3}}, -\frac {96 \, b c^{3} \sqrt {-d} x^{3} \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {-d}}{2 \, {\left (d^{2} x^{2} + d e x + c d\right )}}\right ) - 3 \, {\left (a e^{3} + 4 \, {\left (2 \, b c^{2} - a c d\right )} e\right )} \sqrt {c} x^{3} \log \left (\frac {8 \, c e x + {\left (4 \, c d + e^{2}\right )} x^{2} - 4 \, \sqrt {d x^{2} + e x + c} {\left (e x + 2 \, c\right )} \sqrt {c} + 8 \, c^{2}}{x^{2}}\right ) + 4 \, {\left (2 \, a c^{2} e x + 8 \, a c^{3} + {\left (24 \, b c^{3} + 8 \, a c^{2} d - 3 \, a c e^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + e x + c}}{96 \, c^{3} x^{3}}, \frac {24 \, b c^{3} \sqrt {d} x^{3} \log \left (8 \, d^{2} x^{2} + 8 \, d e x + 4 \, \sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {d} + 4 \, c d + e^{2}\right ) + 3 \, {\left (a e^{3} + 4 \, {\left (2 \, b c^{2} - a c d\right )} e\right )} \sqrt {-c} x^{3} \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (e x + 2 \, c\right )} \sqrt {-c}}{2 \, {\left (c d x^{2} + c e x + c^{2}\right )}}\right ) - 2 \, {\left (2 \, a c^{2} e x + 8 \, a c^{3} + {\left (24 \, b c^{3} + 8 \, a c^{2} d - 3 \, a c e^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + e x + c}}{48 \, c^{3} x^{3}}, -\frac {48 \, b c^{3} \sqrt {-d} x^{3} \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {-d}}{2 \, {\left (d^{2} x^{2} + d e x + c d\right )}}\right ) - 3 \, {\left (a e^{3} + 4 \, {\left (2 \, b c^{2} - a c d\right )} e\right )} \sqrt {-c} x^{3} \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (e x + 2 \, c\right )} \sqrt {-c}}{2 \, {\left (c d x^{2} + c e x + c^{2}\right )}}\right ) + 2 \, {\left (2 \, a c^{2} e x + 8 \, a c^{3} + {\left (24 \, b c^{3} + 8 \, a c^{2} d - 3 \, a c e^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + e x + c}}{48 \, c^{3} x^{3}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.34, size = 720, normalized size = 2.45 \[ -b \sqrt {d} \log \left ({\left | 2 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )} \sqrt {d} + e \right |}\right ) \mathrm {sgn}\left (b x^{2} + a\right ) + \frac {{\left (8 \, b c^{2} e \mathrm {sgn}\left (b x^{2} + a\right ) - 4 \, a c d e \mathrm {sgn}\left (b x^{2} + a\right ) + a e^{3} \mathrm {sgn}\left (b x^{2} + a\right )\right )} \arctan \left (-\frac {\sqrt {d} x - \sqrt {d x^{2} + x e + c}}{\sqrt {-c}}\right )}{8 \, \sqrt {-c} c^{2}} + \frac {24 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{5} b c^{2} \sqrt {d} e \mathrm {sgn}\left (b x^{2} + a\right ) + 12 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{5} a c d^{\frac {3}{2}} e \mathrm {sgn}\left (b x^{2} + a\right ) + 48 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{4} b c^{3} d \mathrm {sgn}\left (b x^{2} + a\right ) + 48 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{4} a c^{2} d^{2} \mathrm {sgn}\left (b x^{2} + a\right ) - 48 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{3} b c^{3} \sqrt {d} e \mathrm {sgn}\left (b x^{2} + a\right ) + 48 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{3} a c^{2} d^{\frac {3}{2}} e \mathrm {sgn}\left (b x^{2} + a\right ) - 96 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{2} b c^{4} d \mathrm {sgn}\left (b x^{2} + a\right ) - 3 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{5} a \sqrt {d} e^{3} \mathrm {sgn}\left (b x^{2} + a\right ) + 24 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )} b c^{4} \sqrt {d} e \mathrm {sgn}\left (b x^{2} + a\right ) + 36 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )} a c^{3} d^{\frac {3}{2}} e \mathrm {sgn}\left (b x^{2} + a\right ) + 48 \, b c^{5} d \mathrm {sgn}\left (b x^{2} + a\right ) + 16 \, a c^{4} d^{2} \mathrm {sgn}\left (b x^{2} + a\right ) + 48 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{2} a c^{2} d e^{2} \mathrm {sgn}\left (b x^{2} + a\right ) + 8 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{3} a c \sqrt {d} e^{3} \mathrm {sgn}\left (b x^{2} + a\right ) + 3 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )} a c^{2} \sqrt {d} e^{3} \mathrm {sgn}\left (b x^{2} + a\right )}{24 \, {\left ({\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )}^{2} - c\right )}^{3} c^{2} \sqrt {d}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 412, normalized size = 1.40 \[ -\frac {\sqrt {\left (b \,x^{2}+a \right )^{2}}\, \left (-12 a \,c^{\frac {3}{2}} d^{\frac {5}{2}} e \,x^{3} \ln \left (\frac {e x +2 c +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {c}}{x}\right )+3 a \sqrt {c}\, d^{\frac {3}{2}} e^{3} x^{3} \ln \left (\frac {e x +2 c +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {c}}{x}\right )-48 b \,c^{3} d^{2} x^{3} \ln \left (\frac {2 d x +e +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}}{2 \sqrt {d}}\right )+24 b \,c^{\frac {5}{2}} d^{\frac {3}{2}} e \,x^{3} \ln \left (\frac {e x +2 c +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {c}}{x}\right )-6 \sqrt {d \,x^{2}+e x +c}\, a \,d^{\frac {5}{2}} e^{2} x^{4}-48 \sqrt {d \,x^{2}+e x +c}\, b \,c^{2} d^{\frac {5}{2}} x^{4}+12 \sqrt {d \,x^{2}+e x +c}\, a c \,d^{\frac {5}{2}} e \,x^{3}-6 \sqrt {d \,x^{2}+e x +c}\, a \,d^{\frac {3}{2}} e^{3} x^{3}-48 \sqrt {d \,x^{2}+e x +c}\, b \,c^{2} d^{\frac {3}{2}} e \,x^{3}+6 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} a \,d^{\frac {3}{2}} e^{2} x^{2}+48 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} b \,c^{2} d^{\frac {3}{2}} x^{2}-12 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} a c \,d^{\frac {3}{2}} e x +16 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} a \,c^{2} d^{\frac {3}{2}}\right )}{48 \left (b \,x^{2}+a \right ) c^{3} d^{\frac {3}{2}} x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\sqrt {{\left (b\,x^2+a\right )}^2}\,\sqrt {d\,x^2+e\,x+c}}{x^4} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________